<?php
$querydata = $_REQUEST['querydata'];

if($querydata == 'exceldemo1')
{
	$Res = $mysql -> prepare('SELECT * FROM '.MP_DBTABLEPRE.'exceldemo WHERE id = ?');
	$Res -> execute(array(urldecode($_REQUEST['fileid'])));
	$Row = $Res -> fetch();
	$Res -> closecursor();
	$a = unserialize($Row['excel_output_config']);
	echo json_encode($a);
	die();
}

if($querydata == 'exceldemo2')
{
	$Res = $mysql -> prepare('SELECT * FROM '.MP_DBTABLEPRE.'exceldemo WHERE id = ?');
	$Res -> execute(array(urldecode($_REQUEST['fileid'])));
	$Row = $Res -> fetch();
	$Res -> closecursor();
	$a = unserialize($Row['excel_output_data_config']);
	echo json_encode($a);
	die();
}


?>